import React from 'react'
function Comh(){
    return (
        <div>函数组件</div>
    )
}
class ComC extends React.Component{
    render(){
        return (
            <div>类组件</div>
        )
    }
}
export class Test4 extends React.Component{
    render(){
        return (
            <div className="area">
                <h1>4.函数组件和类组件</h1>
                <Comh />
                <ComC />
            </div>
        )
    }
}